package com.vegetable.modules.mapper.baseData;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vegetable.modules.entity.baseData.CategoryDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 分类信息数据访问层接口
 * </p>
 * @author Administrator
 */
@Mapper
public interface CategoryMapper extends BaseMapper<CategoryDO> {

    CategoryDO findByCategoryName(String categoryName);

    List<CategoryDO> findByParentId(Long parentId);
}